package practice;

/**
 * @ClassName Message
 * @Date 2024/11/24 11:57 20
 * @Author Jack Chen
 * @Description api-test-REST-Assured
 * @Version 1.0
 */

public class Message {
    /**
     * java Message.java -h xx dd
     * @param args
     */
    public static void main(String[] args) {
        if (args.length == 0 || args[0].equals("-h")) {
            System.out.println("""
                    this is a help message
                    you should input s x x
                    """);
        }
        else if (args[0].equals("-f")) {
            System.out.println("force");
        }
        else if (args[0].equals("-l")) {
            System.out.println("list the people's name");
        }
        else if (args[0].equals("-m")) {
            System.out.println("this is the important message you need.");
        }
        for (int i = 1; i < args.length; i++) {
            System.out.println(" " + args[i]);
        }
        System.out.println("!");
    }
}
